use calculator::calculate_mandelbrot;
use clap::Parser;
use renderator::render_mandelbrot;

pub mod cli;
mod calculator;
mod renderator;

fn main() {
    let args: cli::Cli = cli::Cli::parse();
    let mandelbrot = calculate_mandelbrot(args.max_iters,args.x_min, 
        args.x_max, args.y_min, 
        args.y_max,args.width, 
        args.height
    );

    render_mandelbrot(mandelbrot);
}
